<%--
 *  File:    ConditionItemResult.jsp
 *  @Author: Hilldao 
 *  Date:    2002/1/8
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  //init param
  Category cat = Category.getInstance("jsp.ConditionItemResult"); 
  String strModuleName = "PCM";
  String strTableName = "ovitemsummary";
%>



<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>
<html>
<head>
<title></title>
<PageFlow:CheckPageFlow pageName="conditionresult"/>
<%
  Vector allconditionitem = (Vector)pageContext.getAttribute("conditionresults");
  if(allconditionitem == null)
    allconditionitem = new Vector();
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="../../css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="../../js/FuncLib.js"></script>
<%@ include file="/inc/SummaryDivision.inc" %>
<script>

function page_summary(actionvalue,orderbyname)
{
  var editform = summaryPrepare(conitemreform,actionvalue,orderbyname);
  editform.action = "ConditionItemResult.jsp?<%= OvalTools.randomURL() %>&conditionid=<%=JspHelper.filterNull( request.getParameter("conditionid") )%>";
  editform.target = "_self";
  isRunning = true;
  editform.submit();  
}

</script>
</head>


<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" cellspacing="0" cellpadding="0">
   <form name="conitemreform" method="post" action="../../Dispatcher" >
   <input type="hidden" name="pagename" value="conditionresult">
	 <input type="hidden" name="actionname">
	 <input type="hidden" name="languagecode" value="<%= strLanguageCode %>">
	 <input type="hidden" name="orgid" value="<%=JspHelper.filterNull(request.getParameter("orgid"))%>">
	 
	 
    <tr> 
      <td valign="top" height="529"> 
         <table width="100%" border="0" cellspacing="0">
           <%@ include file="/inc/SummarySearch.inc" %>
         </table>
        
        
        
        <table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
         <tr class="deepblue-left" > 
            <td class="title_center" ><a href="javascript:page_summary('orderby','itemcode')"><%= label.getLabelName("L_ItemCode") %></a></td>
            <td class="title_center" ><a href="javascript:page_summary('orderby','prodname')"><%= label.getLabelName("L_ItemName") %></a></td>
            <td class="title_center" ><a href="javascript:page_summary('orderby','categoryname')"><%= label.getLabelName("L_Category") %></a></td>
         </tr>
          
          <%
             int j = 0;
             String strClassType = new String(); 
          %>
          <logic:iterate id="condetail" collection="<%= allconditionitem %>">                      
         <%
            HashMap ItemMap = (HashMap)pageContext.getAttribute("condetail"); 
           
            String strIsDisabled = new String("");
            
            if(j%2 == 1){
              strClassType = "td-listrom";             
            }else{                    
              strClassType = "";
            }     
            j++;     
          %>
          
          <tr onmouseover="this.className='tr-over'" onmouseout="this.className='<%=JspHelper.filterNull(strClassType)%>'" class="<%=JspHelper.filterNull(strClassType)%>">
            <td>&nbsp;<%=JspHelper.filterNull( ItemMap.get("itemcode") )%></td>
            <td>&nbsp;<%=JspHelper.filterNull( ItemMap.get("prodname") )%></td>
            <td>&nbsp;<%=JspHelper.filterNull( ItemMap.get("categoryname") )%></td>
          </tr>
          </logic:iterate>  
          
             <%@ include file="/inc/SummaryActionPop.inc" %>
           
        </table>
        <table width="100%" cellspacing="0" cellpadding="0">
          <tr> 
            <td class="summary_top"></td>
          </tr>
 	<tr>
	  <td class="td_center">
	  <a onclick="window.close()"><custom:button type="1" label="L_CloseWindow" imgsrc="CloseWindow.gif" border="0" style="width:60"/></a>
	  </td>
	</tr>

       </table>
      </td>
    </tr>
  </form>
</table>
</body>
</html>


